/*
 * marketsim-eclipsetrader
 *
 * Copyright (C) 2008-2011 Steve Phelps and John Cartlidge
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 3 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 */
/*
 *  (C) Victria Ltd. 2007
 */
package victria.marketsim.ordertype;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;


public class OrderTypes {

	protected Map<String,OrderType> map = new HashMap<String,OrderType>();
	
	public OrderTypes() {
	}
	
	public OrderType getOrderType(String name) {
		return map.get(name);
	}
	
	public Collection<String> getNames() {
		return map.keySet();
	}

	public Map<String, OrderType> getMap() {
		return map;
	}

	public void setMap(Map<String, OrderType> map) {
		this.map = map;
	}

	public Collection<OrderType> getTypes() {
		return map.values();
	}
	
	
	
}
